package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售汇总对象 tb_sale
 * 
 * @author ruoyi
 * @date 2024-05-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sale
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long saleId;

    /** 单号 */
    @Excel(name = "单号")
    private String saleCode;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplyId;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long znum;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal zprice;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /** 销售or销退 */
    @Excel(name = "销售or销退")
    private String isXt;

    /** 是否支付 */
    @Excel(name = "是否支付")
    private String isZf;

    /** 是否入库 */
    @Excel(name = "是否入库")
    private String isRk;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String isSh;

    /** 审核人 */
    @Excel(name = "审核人")
    private String shName;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime shTime;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String shRemark;

    private String isZd;

    //------------------追加属性
    private String supplyName;
    private String productName;
    private List<String> isRkList;
    private List<String> isShList;
}
